<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: PPU Programmable (PROG) v1 Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__prot__functions__ppu__prog.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">PPU Programmable (PROG) v1 Functions<div class="ingroups"><a class="el" href="group__group__prot.html">Prot         (Protection Unit)</a> &raquo; <a class="el" href="group__group__prot__functions.html">Functions</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga233488f0fc29169bd693d9d6011586d6"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE <a class="el" href="group__group__prot__enums.html#ga13ede85383a4afaf5ed3a14b470e38bd">cy_en_prot_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__prot__functions__ppu__prog.html#ga233488f0fc29169bd693d9d6011586d6">Cy_Prot_DisablePpuProgStruct</a> (<a class="el" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> *base)</td></tr>
<tr class="memdesc:ga233488f0fc29169bd693d9d6011586d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function disables both the master and slave parts of a protection unit.  <a href="#ga233488f0fc29169bd693d9d6011586d6">More...</a><br /></td></tr>
<tr class="separator:ga233488f0fc29169bd693d9d6011586d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5e762b9fabdea91b4ee1ee51d94367a5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__prot__enums.html#ga13ede85383a4afaf5ed3a14b470e38bd">cy_en_prot_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__prot__functions__ppu__prog.html#ga5e762b9fabdea91b4ee1ee51d94367a5">Cy_Prot_ConfigPpuProgMasterStruct</a> (<a class="el" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> *base, const <a class="el" href="structcy__stc__ppu__prog__cfg__t.html">cy_stc_ppu_prog_cfg_t</a> *config)</td></tr>
<tr class="memdesc:ga5e762b9fabdea91b4ee1ee51d94367a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures a Programmable Peripheral Protection Unit (PPU PROG) master protection struct with its protection attributes.  <a href="#ga5e762b9fabdea91b4ee1ee51d94367a5">More...</a><br /></td></tr>
<tr class="separator:ga5e762b9fabdea91b4ee1ee51d94367a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac41861fd111ad47232ca968fbac63682"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__prot__enums.html#ga13ede85383a4afaf5ed3a14b470e38bd">cy_en_prot_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__prot__functions__ppu__prog.html#gac41861fd111ad47232ca968fbac63682">Cy_Prot_ConfigPpuProgSlaveStruct</a> (<a class="el" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> *base, const <a class="el" href="structcy__stc__ppu__prog__cfg__t.html">cy_stc_ppu_prog_cfg_t</a> *config)</td></tr>
<tr class="memdesc:gac41861fd111ad47232ca968fbac63682"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures a Programmable Peripheral Protection Unit (PPU PROG) slave protection struct with its protection attributes.  <a href="#gac41861fd111ad47232ca968fbac63682">More...</a><br /></td></tr>
<tr class="separator:gac41861fd111ad47232ca968fbac63682"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga08ea5e2e28ec22a64b065b108eff4906"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__prot__enums.html#ga13ede85383a4afaf5ed3a14b470e38bd">cy_en_prot_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__prot__functions__ppu__prog.html#ga08ea5e2e28ec22a64b065b108eff4906">Cy_Prot_EnablePpuProgMasterStruct</a> (<a class="el" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> *base)</td></tr>
<tr class="memdesc:ga08ea5e2e28ec22a64b065b108eff4906"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the Master PPU PROG structure.  <a href="#ga08ea5e2e28ec22a64b065b108eff4906">More...</a><br /></td></tr>
<tr class="separator:ga08ea5e2e28ec22a64b065b108eff4906"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8c277eeaa5ab5ae461ffbab97c1fda68"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__prot__enums.html#ga13ede85383a4afaf5ed3a14b470e38bd">cy_en_prot_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__prot__functions__ppu__prog.html#ga8c277eeaa5ab5ae461ffbab97c1fda68">Cy_Prot_DisablePpuProgMasterStruct</a> (<a class="el" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> *base)</td></tr>
<tr class="memdesc:ga8c277eeaa5ab5ae461ffbab97c1fda68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the Master PPU PROG structure.  <a href="#ga8c277eeaa5ab5ae461ffbab97c1fda68">More...</a><br /></td></tr>
<tr class="separator:ga8c277eeaa5ab5ae461ffbab97c1fda68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga20d38c4788b4260f14824532e2a393e8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__prot__enums.html#ga13ede85383a4afaf5ed3a14b470e38bd">cy_en_prot_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__prot__functions__ppu__prog.html#ga20d38c4788b4260f14824532e2a393e8">Cy_Prot_EnablePpuProgSlaveStruct</a> (<a class="el" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> *base)</td></tr>
<tr class="memdesc:ga20d38c4788b4260f14824532e2a393e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the Slave PPU PROG structure.  <a href="#ga20d38c4788b4260f14824532e2a393e8">More...</a><br /></td></tr>
<tr class="separator:ga20d38c4788b4260f14824532e2a393e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga30b72565374c6cd1460c97c70b5d413a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__prot__enums.html#ga13ede85383a4afaf5ed3a14b470e38bd">cy_en_prot_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__prot__functions__ppu__prog.html#ga30b72565374c6cd1460c97c70b5d413a">Cy_Prot_DisablePpuProgSlaveStruct</a> (<a class="el" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> *base)</td></tr>
<tr class="memdesc:ga30b72565374c6cd1460c97c70b5d413a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the Slave PPU PROG structure.  <a href="#ga30b72565374c6cd1460c97c70b5d413a">More...</a><br /></td></tr>
<tr class="separator:ga30b72565374c6cd1460c97c70b5d413a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaea671baa8df5f37922e7325a291e250c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__prot__enums.html#ga13ede85383a4afaf5ed3a14b470e38bd">cy_en_prot_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__prot__functions__ppu__prog.html#gaea671baa8df5f37922e7325a291e250c">Cy_Prot_GetPpuProgStruct</a> (<a class="el" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> **base, <a class="el" href="group__group__prot__enums.html#gaaeba5a362760906a0b1e0f73a177d9d7">cy_en_prot_req_mode_t</a> reqMode, uint32_t ppuProgIndex)</td></tr>
<tr class="memdesc:gaea671baa8df5f37922e7325a291e250c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Functions returns a pointer of the requested unused Programmable PPU structure.  <a href="#gaea671baa8df5f37922e7325a291e250c">More...</a><br /></td></tr>
<tr class="separator:gaea671baa8df5f37922e7325a291e250c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga233488f0fc29169bd693d9d6011586d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga233488f0fc29169bd693d9d6011586d6">&#9670;&nbsp;</a></span>Cy_Prot_DisablePpuProgStruct()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE <a class="el" href="group__group__prot__enums.html#ga13ede85383a4afaf5ed3a14b470e38bd">cy_en_prot_status_t</a> Cy_Prot_DisablePpuProgStruct </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function disables both the master and slave parts of a protection unit. </p>
<dl class="section note"><dt>Note</dt><dd>This functions has an effect only on devices with PERI IP version 1. Refer to the device datasheet for information about PERI HW IP version.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The base address for the Programmable PU structure to be disabled.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of the function call.</dd></dl>
<table class="doxtable">
<tr>
<th>Status </th><th>Description  </th></tr>
<tr>
<td>CY_PROT_SUCCESS </td><td>The Master and Slave Programmable PU struct was disabled </td></tr>
<tr>
<td>CY_PROT_FAILURE </td><td>The Master and/or slave Programmable PU struct was not disabled </td></tr>
<tr>
<td>CY_PROT_INVALID_STATE </td><td>Function was called on the unsupported PERI IP version </td></tr>
</table>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: The struct of PERI_PPU_PR0 needs to be disabled. Or it</span></div><div class="line"><span class="comment">                 needs to be reconfigured and hence must first be disabled. */</span></div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span>(<a class="code" href="group__group__prot__enums.html#gga13ede85383a4afaf5ed3a14b470e38bda462f07fcb31ed8a07dd273af4290691d">CY_PROT_SUCCESS</a> != <a class="code" href="group__group__prot__functions__ppu__prog.html#ga233488f0fc29169bd693d9d6011586d6">Cy_Prot_DisablePpuProgStruct</a>(PERI_PPU_PR0))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga5e762b9fabdea91b4ee1ee51d94367a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5e762b9fabdea91b4ee1ee51d94367a5">&#9670;&nbsp;</a></span>Cy_Prot_ConfigPpuProgMasterStruct()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__prot__enums.html#ga13ede85383a4afaf5ed3a14b470e38bd">cy_en_prot_status_t</a> Cy_Prot_ConfigPpuProgMasterStruct </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcy__stc__ppu__prog__cfg__t.html">cy_stc_ppu_prog_cfg_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures a Programmable Peripheral Protection Unit (PPU PROG) master protection struct with its protection attributes. </p>
<p>This function configures the master struct governing the corresponding slave struct pair. It is a mechanism to protect the slave PPU PROG struct. Since the memory location of the slave struct is known, the address, regionSize and subregions of the configuration struct are not applicable.</p>
<p>Note that only the user/privileged write permissions are configurable. The read and execute permissions are read-only and cannot be configured.</p>
<dl class="section note"><dt>Note</dt><dd>This function is applicable for CPUSS ver_1 only.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The register base address of the protection struct being configured.</td></tr>
    <tr><td class="paramname">config</td><td>Initialization structure with all the protection attributes.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of the function call.</dd></dl>
<table class="doxtable">
<tr>
<th>Status </th><th>Description  </th></tr>
<tr>
<td>CY_PROT_SUCCESS </td><td>PPU PROG master struct was successfully configured. </td></tr>
<tr>
<td>CY_PROT_FAILURE </td><td>The resource is locked. </td></tr>
<tr>
<td>CY_PROT_BAD_PARAM </td><td>An incorrect/invalid parameter was passed. </td></tr>
<tr>
<td>CY_PROT_INVALID_STATE </td><td>The function was called on the device with an unsupported PERI HW version. </td></tr>
</table>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: A bus master must not be able to access the PERI_PPU_PR0 master</span></div><div class="line"><span class="comment">                 and slave structs unless operating with PC=0, &quot;secure&quot; and</span></div><div class="line"><span class="comment">                 &quot;privileged&quot; access settings. The PERI_PPU_PR0 slave struct is </span></div><div class="line"><span class="comment">                 already configured and enabled. */</span></div><div class="line"></div><div class="line">    <a class="code" href="structcy__stc__ppu__prog__cfg__t.html">cy_stc_ppu_prog_cfg_t</a> progPpuCfg_m = {</div><div class="line">        <span class="comment">/*.address =*/</span> 0UL,                         <span class="comment">/* Not applicable for master struct */</span></div><div class="line">        <span class="comment">/*.regionSize =*/</span> (<a class="code" href="group__group__prot__enums.html#gaad39ed0d259460f717edfe9d08fc005f">cy_en_prot_size_t</a>)0UL,   <span class="comment">/* Not applicable for master struct */</span></div><div class="line">        <span class="comment">/*.subregions =*/</span> 0UL,                      <span class="comment">/* Not applicable for master struct */</span></div><div class="line">        <span class="comment">/*.userPermission =*/</span> <a class="code" href="group__group__prot__enums.html#gga330789bc5242c26b8a32df63fa8720e5aad6e3850fb76be4bd78240a4fc284985">CY_PROT_PERM_R</a>,       <span class="comment">/* Read access always available for Master */</span></div><div class="line">        <span class="comment">/*.privPermission =*/</span> <a class="code" href="group__group__prot__enums.html#gga330789bc5242c26b8a32df63fa8720e5aa7d757bf3cedd4f675b65d3ed642d315">CY_PROT_PERM_RW</a>,      <span class="comment">/*  Allow read and write privileged mode accesses */</span></div><div class="line">        <span class="comment">/*.secure =*/</span> <span class="keyword">true</span>,                         <span class="comment">/* Only allow &quot;secure&quot; bus masters */</span></div><div class="line">        <span class="comment">/*.pcMatch =*/</span> <span class="keyword">false</span>,                       <span class="comment">/* Perform access evaluation */</span></div><div class="line">        <span class="comment">/*.pcMask =*/</span> (uint16_t)0UL                 <span class="comment">/* Only allow PC=0 bus masters */</span></div><div class="line">    };</div><div class="line"> </div><div class="line">    <span class="comment">/* Configure the master struct of PROG PPU #0 */</span></div><div class="line">    <span class="keywordflow">if</span>(<a class="code" href="group__group__prot__enums.html#gga13ede85383a4afaf5ed3a14b470e38bda462f07fcb31ed8a07dd273af4290691d">CY_PROT_SUCCESS</a> != <a class="code" href="group__group__prot__functions__ppu__prog.html#ga5e762b9fabdea91b4ee1ee51d94367a5">Cy_Prot_ConfigPpuProgMasterStruct</a>(PERI_PPU_PR0, &amp;progPpuCfg_m))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line">    <span class="keywordflow">else</span></div><div class="line">    {</div><div class="line">        <span class="comment">/* Enable the master struct of PROG PPU #0 */</span></div><div class="line">        <span class="keywordflow">if</span>(<a class="code" href="group__group__prot__enums.html#gga13ede85383a4afaf5ed3a14b470e38bda462f07fcb31ed8a07dd273af4290691d">CY_PROT_SUCCESS</a> != <a class="code" href="group__group__prot__functions__ppu__prog.html#ga08ea5e2e28ec22a64b065b108eff4906">Cy_Prot_EnablePpuProgMasterStruct</a>(PERI_PPU_PR0))</div><div class="line">        {</div><div class="line">            <span class="comment">/* Insert error handling */</span></div><div class="line">        }</div><div class="line">    }</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gac41861fd111ad47232ca968fbac63682"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac41861fd111ad47232ca968fbac63682">&#9670;&nbsp;</a></span>Cy_Prot_ConfigPpuProgSlaveStruct()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__prot__enums.html#ga13ede85383a4afaf5ed3a14b470e38bd">cy_en_prot_status_t</a> Cy_Prot_ConfigPpuProgSlaveStruct </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structcy__stc__ppu__prog__cfg__t.html">cy_stc_ppu_prog_cfg_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures a Programmable Peripheral Protection Unit (PPU PROG) slave protection struct with its protection attributes. </p>
<p>This function configures the slave struct of a PPU PROG pair, which can protect any peripheral memory region in a device from invalid bus master accesses.</p>
<p>Note that the user/privileged execute accesses are read-only and are always enabled.</p>
<dl class="section note"><dt>Note</dt><dd>This function is applicable for CPUSS ver_1 only.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The register base address of the protection structure being configured.</td></tr>
    <tr><td class="paramname">config</td><td>Initialization structure with all the protection attributes.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of the function call.</dd></dl>
<table class="doxtable">
<tr>
<th>Status </th><th>Description  </th></tr>
<tr>
<td>CY_PROT_SUCCESS </td><td>PPU PROG slave struct was successfully configured. </td></tr>
<tr>
<td>CY_PROT_FAILURE </td><td>The resource is locked. </td></tr>
<tr>
<td>CY_PROT_BAD_PARAM </td><td>An incorrect/invalid parameter was passed. </td></tr>
<tr>
<td>CY_PROT_INVALID_STATE </td><td>The function was called on the device with an unsupported PERI HW version. </td></tr>
</table>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: A bus master must not be able to access the GPIO port 0 registers </span></div><div class="line"><span class="comment">                 (0x40320000 ~ 0x4032007F) unless it has the &quot;secure&quot; attribute </span></div><div class="line"><span class="comment">                 and is operating at PC=0 or PC=2. */</span></div><div class="line">    </div><div class="line">    <a class="code" href="structcy__stc__ppu__prog__cfg__t.html">cy_stc_ppu_prog_cfg_t</a> progPpuCfg_s = {</div><div class="line">        <span class="comment">/*.address =*/</span> (uint32_t *)GPIO_PRT0,       <span class="comment">/* Starting address at GPIO port 0 base */</span></div><div class="line">        <span class="comment">/*.regionSize =*/</span> <a class="code" href="group__group__prot__enums.html#ggaad39ed0d259460f717edfe9d08fc005fac95822db72eb8b6b16cd97f84c0d0b12">CY_PROT_SIZE_256B</a>,        <span class="comment">/* Protect block of 256 Bytes */</span></div><div class="line">        <span class="comment">/*.subregions =*/</span> <a class="code" href="group__group__prot__enums.html#gga618195213f866568fb71ed14af59cf6ca1c8ba488664315a29d5de4ebf86c252b">CY_PROT_SUBREGION_DIS4</a></div><div class="line">                      | <a class="code" href="group__group__prot__enums.html#gga618195213f866568fb71ed14af59cf6caa13aa84d3592145bcb1d189b59d2a8d8">CY_PROT_SUBREGION_DIS5</a></div><div class="line">                      | <a class="code" href="group__group__prot__enums.html#gga618195213f866568fb71ed14af59cf6caaa87e23a7eba5433117ebedfb4a82527">CY_PROT_SUBREGION_DIS6</a></div><div class="line">                      | <a class="code" href="group__group__prot__enums.html#gga618195213f866568fb71ed14af59cf6ca2c981f41713e5632dc55167017335beb">CY_PROT_SUBREGION_DIS7</a>, <span class="comment">/* Disable protection for last 128 (4*256/8) Bytes */</span></div><div class="line">        <span class="comment">/*.userPermission =*/</span> <a class="code" href="group__group__prot__enums.html#gga330789bc5242c26b8a32df63fa8720e5aa7d757bf3cedd4f675b65d3ed642d315">CY_PROT_PERM_RW</a>,      <span class="comment">/* Allow Read and Write user mode accesses */</span></div><div class="line">        <span class="comment">/*.privPermission =*/</span> <a class="code" href="group__group__prot__enums.html#gga330789bc5242c26b8a32df63fa8720e5aa7d757bf3cedd4f675b65d3ed642d315">CY_PROT_PERM_RW</a>,      <span class="comment">/* Allow Read and Write privileged mode accesses */</span></div><div class="line">        <span class="comment">/*.secure =*/</span> <span class="keyword">true</span>,                         <span class="comment">/* Only allow &quot;secure&quot; bus masters */</span></div><div class="line">        <span class="comment">/*.pcMatch =*/</span> <span class="keyword">false</span>,                       <span class="comment">/* Perform access evaluation */</span></div><div class="line">        <span class="comment">/*.pcMask =*/</span> (uint16_t)<a class="code" href="group__group__prot__enums.html#gga4486bc74d6e98ad99c1ce4d532e48d0fa0b17d740a164ae90f06a4ab2f17d79d0">CY_PROT_PCMASK2</a>     <span class="comment">/* Allow PC=0 and PC=2 accesses */</span></div><div class="line">    };</div><div class="line">    </div><div class="line">    <span class="comment">/* Configure the slave struct of PROG PPU #0 */</span></div><div class="line">    <span class="keywordflow">if</span>(<a class="code" href="group__group__prot__enums.html#gga13ede85383a4afaf5ed3a14b470e38bda462f07fcb31ed8a07dd273af4290691d">CY_PROT_SUCCESS</a> != <a class="code" href="group__group__prot__functions__ppu__prog.html#gac41861fd111ad47232ca968fbac63682">Cy_Prot_ConfigPpuProgSlaveStruct</a>(PERI_PPU_PR0, &amp;progPpuCfg_s))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line">    <span class="keywordflow">else</span></div><div class="line">    {</div><div class="line">        <span class="comment">/* Enable the slave struct of PROG PPU #0 */</span></div><div class="line">        <span class="keywordflow">if</span>(<a class="code" href="group__group__prot__enums.html#gga13ede85383a4afaf5ed3a14b470e38bda462f07fcb31ed8a07dd273af4290691d">CY_PROT_SUCCESS</a> != <a class="code" href="group__group__prot__functions__ppu__prog.html#ga20d38c4788b4260f14824532e2a393e8">Cy_Prot_EnablePpuProgSlaveStruct</a>(PERI_PPU_PR0))</div><div class="line">        {</div><div class="line">            <span class="comment">/* Insert error handling */</span></div><div class="line">        }</div><div class="line">    }</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga08ea5e2e28ec22a64b065b108eff4906"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga08ea5e2e28ec22a64b065b108eff4906">&#9670;&nbsp;</a></span>Cy_Prot_EnablePpuProgMasterStruct()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__prot__enums.html#ga13ede85383a4afaf5ed3a14b470e38bd">cy_en_prot_status_t</a> Cy_Prot_EnablePpuProgMasterStruct </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the Master PPU PROG structure. </p>
<p>This is a PPU PROG master struct enable function. The PPU PROG protection settings will take effect after successful completion of this function call.</p>
<dl class="section note"><dt>Note</dt><dd>This function is applicable for CPUSS ver_1 only.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The base address for the protection unit structure being configured.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of the function call.</dd></dl>
<table class="doxtable">
<tr>
<th>Status </th><th>Description  </th></tr>
<tr>
<td>CY_PROT_SUCCESS </td><td>The Master PU struct was enabled. </td></tr>
<tr>
<td>CY_PROT_FAILURE </td><td>The Master PU struct is disabled and possibly locked. </td></tr>
<tr>
<td>CY_PROT_INVALID_STATE </td><td>The function was called on the device with an unsupported PERI HW version. </td></tr>
</table>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: The master struct of PERI_PPU_PR0 is configured to protect its</span></div><div class="line"><span class="comment">                 slave struct and needs to be enabled. */</span></div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span>(<a class="code" href="group__group__prot__enums.html#gga13ede85383a4afaf5ed3a14b470e38bda462f07fcb31ed8a07dd273af4290691d">CY_PROT_SUCCESS</a> != <a class="code" href="group__group__prot__functions__ppu__prog.html#ga08ea5e2e28ec22a64b065b108eff4906">Cy_Prot_EnablePpuProgMasterStruct</a>(PERI_PPU_PR0))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga8c277eeaa5ab5ae461ffbab97c1fda68"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8c277eeaa5ab5ae461ffbab97c1fda68">&#9670;&nbsp;</a></span>Cy_Prot_DisablePpuProgMasterStruct()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__prot__enums.html#ga13ede85383a4afaf5ed3a14b470e38bd">cy_en_prot_status_t</a> Cy_Prot_DisablePpuProgMasterStruct </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the Master PPU PROG structure. </p>
<p>This is a PPU PROG master struct disable function. The PPU PROG protection settings will seize to take effect after successful completion of this function call.</p>
<dl class="section note"><dt>Note</dt><dd>This function is applicable for CPUSS ver_1 only.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The base address for the protection unit structure being configured.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of the function call.</dd></dl>
<table class="doxtable">
<tr>
<th>Status </th><th>Description  </th></tr>
<tr>
<td>CY_PROT_SUCCESS </td><td>The Master PU struct was disabled. </td></tr>
<tr>
<td>CY_PROT_FAILURE </td><td>The Master PU struct is enabled and possibly locked. </td></tr>
<tr>
<td>CY_PROT_INVALID_STATE </td><td>The function was called on the device with an unsupported PERI HW version. </td></tr>
</table>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: The master struct of PERI_PPU_PR0 needs to be disabled. Or it</span></div><div class="line"><span class="comment">                 needs to be reconfigured and hence must first be disabled. */</span></div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span>(<a class="code" href="group__group__prot__enums.html#gga13ede85383a4afaf5ed3a14b470e38bda462f07fcb31ed8a07dd273af4290691d">CY_PROT_SUCCESS</a> != <a class="code" href="group__group__prot__functions__ppu__prog.html#ga8c277eeaa5ab5ae461ffbab97c1fda68">Cy_Prot_DisablePpuProgMasterStruct</a>(PERI_PPU_PR0))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga20d38c4788b4260f14824532e2a393e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga20d38c4788b4260f14824532e2a393e8">&#9670;&nbsp;</a></span>Cy_Prot_EnablePpuProgSlaveStruct()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__prot__enums.html#ga13ede85383a4afaf5ed3a14b470e38bd">cy_en_prot_status_t</a> Cy_Prot_EnablePpuProgSlaveStruct </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the Slave PPU PROG structure. </p>
<p>This is a PPU PROG slave struct enable function. The PPU PROG protection settings will take effect after successful completion of this function call.</p>
<dl class="section note"><dt>Note</dt><dd>This function is applicable for CPUSS ver_1 only.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The base address for the protection unit structure being configured.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of the function call.</dd></dl>
<table class="doxtable">
<tr>
<th>Status </th><th>Description  </th></tr>
<tr>
<td>CY_PROT_SUCCESS </td><td>The Slave PU struct was enabled. </td></tr>
<tr>
<td>CY_PROT_FAILURE </td><td>The Slave PU struct is disabled and possibly locked. </td></tr>
<tr>
<td>CY_PROT_INVALID_STATE </td><td>The function was called on the device with an unsupported PERI HW version. </td></tr>
</table>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: The slave struct of PERI_PPU_PR0 is configured to protect a </span></div><div class="line"><span class="comment">                 resource and needs to be enabled. */</span></div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span>(<a class="code" href="group__group__prot__enums.html#gga13ede85383a4afaf5ed3a14b470e38bda462f07fcb31ed8a07dd273af4290691d">CY_PROT_SUCCESS</a> != <a class="code" href="group__group__prot__functions__ppu__prog.html#ga20d38c4788b4260f14824532e2a393e8">Cy_Prot_EnablePpuProgSlaveStruct</a>(PERI_PPU_PR0))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga30b72565374c6cd1460c97c70b5d413a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga30b72565374c6cd1460c97c70b5d413a">&#9670;&nbsp;</a></span>Cy_Prot_DisablePpuProgSlaveStruct()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__prot__enums.html#ga13ede85383a4afaf5ed3a14b470e38bd">cy_en_prot_status_t</a> Cy_Prot_DisablePpuProgSlaveStruct </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the Slave PPU PROG structure. </p>
<p>This is a PPU PROG slave struct disable function. The PPU PROG protection settings will seize to take effect after successful completion of this function call.</p>
<dl class="section note"><dt>Note</dt><dd>This function is applicable for CPUSS ver_1 only.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The base address for the protection unit structure being configured.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of the function call.</dd></dl>
<table class="doxtable">
<tr>
<th>Status </th><th>Description  </th></tr>
<tr>
<td>CY_PROT_SUCCESS </td><td>The Slave PU struct was disabled. </td></tr>
<tr>
<td>CY_PROT_FAILURE </td><td>The Slave PU struct is enabled and possibly locked. </td></tr>
<tr>
<td>CY_PROT_INVALID_STATE </td><td>The function was called on the device with an unsupported PERI HW version. </td></tr>
</table>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    </div><div class="line">    <span class="comment">/* Scenario: The slave struct of PERI_PPU_PR0 needs to be disabled. Or it</span></div><div class="line"><span class="comment">                 needs to be reconfigured and hence must first be disabled. */</span></div><div class="line">    </div><div class="line">    <span class="keywordflow">if</span>(<a class="code" href="group__group__prot__enums.html#gga13ede85383a4afaf5ed3a14b470e38bda462f07fcb31ed8a07dd273af4290691d">CY_PROT_SUCCESS</a> != <a class="code" href="group__group__prot__functions__ppu__prog.html#ga30b72565374c6cd1460c97c70b5d413a">Cy_Prot_DisablePpuProgSlaveStruct</a>(PERI_PPU_PR0))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaea671baa8df5f37922e7325a291e250c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaea671baa8df5f37922e7325a291e250c">&#9670;&nbsp;</a></span>Cy_Prot_GetPpuProgStruct()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__prot__enums.html#ga13ede85383a4afaf5ed3a14b470e38bd">cy_en_prot_status_t</a> Cy_Prot_GetPpuProgStruct </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> **&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__prot__enums.html#gaaeba5a362760906a0b1e0f73a177d9d7">cy_en_prot_req_mode_t</a>&#160;</td>
          <td class="paramname"><em>reqMode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>ppuProgIndex</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Functions returns a pointer of the requested unused Programmable PPU structure. </p>
<p>Function searches the Programmable PPU structure until it finds one that both the slave and master sections are disabled. After an available structure is located, function enables the slave structure and enables all attributes, to make sure that a subsequent call will not see this as an available (unused) Programmable PPU.</p>
<p>It is up to the user to implement, if needed, a system in which a semaphore will lock-out all but one CPU from calling this function at once.</p>
<dl class="section note"><dt>Note</dt><dd>This function is applicable for CPUSS ver_1 only.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The base address for the Programmable PPU structure returned if an unused structure was found. If an empty structure was not found, the returned pointer is NULL.</td></tr>
    <tr><td class="paramname">reqMode</td><td>This parameter (request mode) selects how the user wants to select a Programmable PPU structure.</td></tr>
  </table>
  </dd>
</dl>
<table class="doxtable">
<tr>
<th>reqMode </th><th>Description  </th></tr>
<tr>
<td>CY_PROT_REQMODE_HIGHPRIOR </td><td>Return the Programmable PPU structure with the highest priority. </td></tr>
<tr>
<td>CY_PROT_REQMODE_LOWPRIOR </td><td>Return the Programmable PPU structure with the lowest priority. </td></tr>
<tr>
<td>CY_PROT_REQMODE_INDEX </td><td>Return the Programmable PPU structure with the specific index. </td></tr>
</table>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ppuProgIndex</td><td>This is the index of the requested Programmable PPU structure. It is only used if the request mode is reqMode = CY_PROT_REQMODE_INDEX.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of the function call.</dd></dl>
<table class="doxtable">
<tr>
<th>Status </th><th>Description  </th></tr>
<tr>
<td>CY_PROT_SUCCESS </td><td>The Slave PU struct was disabled. </td></tr>
<tr>
<td>CY_PROT_FAILURE </td><td>The Master or Slave Programmable PPU struct is disabled and possibly locked. </td></tr>
<tr>
<td>CY_PROT_UNAVAILABLE </td><td>The requested structure in use or there were no unused structures. </td></tr>
<tr>
<td>CY_PROT_INVALID_STATE </td><td>Function was called on unsupported PERI HW version. </td></tr>
</table>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Need to find available PERI_PPU structure with highest priority </span></div><div class="line"><span class="comment">    *  and configure it.</span></div><div class="line"><span class="comment">    */</span></div><div class="line">    </div><div class="line">    </div><div class="line">    <a class="code" href="struct_p_e_r_i___p_p_u___p_r___type.html">PERI_PPU_PR_Type</a> *reqStr;</div><div class="line">    </div><div class="line">    <span class="comment">/* Check is required structure is unused */</span></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__prot__enums.html#gga13ede85383a4afaf5ed3a14b470e38bda462f07fcb31ed8a07dd273af4290691d">CY_PROT_SUCCESS</a> != <a class="code" href="group__group__prot__functions__ppu__prog.html#gaea671baa8df5f37922e7325a291e250c">Cy_Prot_GetPpuProgStruct</a>(&amp;reqStr, <a class="code" href="group__group__prot__enums.html#ggaaeba5a362760906a0b1e0f73a177d9d7aa2f960efb4d291b72c77432e3a20a30a">CY_PROT_REQMODE_HIGHPRIOR</a>, 0U))</div><div class="line">    {</div><div class="line">       <span class="comment">/* Insert error handling */</span></div><div class="line">    }</div><div class="line">    <span class="keywordflow">else</span></div><div class="line">    {</div><div class="line">        <a class="code" href="structcy__stc__ppu__prog__cfg__t.html">cy_stc_ppu_prog_cfg_t</a> progPpuCfg_m =</div><div class="line">        {</div><div class="line">        <span class="comment">/*.address =*/</span> 0UL,                         <span class="comment">/* Not applicable for master struct */</span></div><div class="line">        <span class="comment">/*.regionSize =*/</span> (<a class="code" href="group__group__prot__enums.html#gaad39ed0d259460f717edfe9d08fc005f">cy_en_prot_size_t</a>)0UL,   <span class="comment">/* Not applicable for master struct */</span></div><div class="line">        <span class="comment">/*.subregions =*/</span> 0UL,                      <span class="comment">/* Not applicable for master struct */</span></div><div class="line">        <span class="comment">/*.userPermission =*/</span> <a class="code" href="group__group__prot__enums.html#gga330789bc5242c26b8a32df63fa8720e5aad6e3850fb76be4bd78240a4fc284985">CY_PROT_PERM_R</a>,       <span class="comment">/* Read access always available for Master */</span></div><div class="line">        <span class="comment">/*.privPermission =*/</span> <a class="code" href="group__group__prot__enums.html#gga330789bc5242c26b8a32df63fa8720e5aa7d757bf3cedd4f675b65d3ed642d315">CY_PROT_PERM_RW</a>,      <span class="comment">/*  Allow read and write privileged mode accesses */</span></div><div class="line">        <span class="comment">/*.secure =*/</span> <span class="keyword">true</span>,                         <span class="comment">/* Only allow &quot;secure&quot; bus masters */</span></div><div class="line">        <span class="comment">/*.pcMatch =*/</span> <span class="keyword">false</span>,                       <span class="comment">/* Perform access evaluation */</span></div><div class="line">        <span class="comment">/*.pcMask =*/</span> (uint16_t)0UL                 <span class="comment">/* Only allow PC=0 bus masters */</span></div><div class="line">        };</div><div class="line">         </div><div class="line">        <span class="comment">/* Configure the master struct of found PERI PPU struct */</span></div><div class="line">        <span class="keywordflow">if</span>(<a class="code" href="group__group__prot__enums.html#gga13ede85383a4afaf5ed3a14b470e38bda462f07fcb31ed8a07dd273af4290691d">CY_PROT_SUCCESS</a> != <a class="code" href="group__group__prot__functions__ppu__prog.html#ga5e762b9fabdea91b4ee1ee51d94367a5">Cy_Prot_ConfigPpuProgMasterStruct</a>(reqStr, &amp;progPpuCfg_m))</div><div class="line">        {</div><div class="line">            <span class="comment">/* Insert error handling */</span></div><div class="line">        }</div><div class="line">        <span class="keywordflow">else</span></div><div class="line">        {</div><div class="line">            <span class="comment">/* Enable the master struct of PROG PPU */</span></div><div class="line">            <span class="keywordflow">if</span>(<a class="code" href="group__group__prot__enums.html#gga13ede85383a4afaf5ed3a14b470e38bda462f07fcb31ed8a07dd273af4290691d">CY_PROT_SUCCESS</a> != <a class="code" href="group__group__prot__functions__ppu__prog.html#ga08ea5e2e28ec22a64b065b108eff4906">Cy_Prot_EnablePpuProgMasterStruct</a>(reqStr))</div><div class="line">            {</div><div class="line">                <span class="comment">/* Insert error handling */</span></div><div class="line">            }</div><div class="line">        }</div><div class="line"></div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
